package com.adee.jdk8;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.stream.Collectors;

public class Test007 {
    public static void main(String[] args) {
        int[] arr = new int[]{1,3,6,8};
        String s = Arrays.stream(arr).mapToObj(i->i+"").collect(Collectors.joining(",", "[", "]"));
        System.out.println(s);
        ArrayList list = new ArrayList();
        list.get(0);
    }
}
